package com.baizhi.service;

import com.baizhi.entity.Admin;
import com.baizhi.entity.Category;

import java.util.HashMap;
import java.util.List;

public interface CategoryService {

    //分页查所有一级类别
    HashMap<String,Object> queryOneCatePage(Integer page, Integer rows);

    //分页查所有二级类别
    HashMap<String,Object> queryTwoCatePage(Integer page, Integer rows, String parentId);

    //修改
    void update(Category category);

    //添加
    void add(Category category);

    //删除
    HashMap<String ,Object> del(Category category);
}
